package com.xhsj.user.hr.userInfo.mapper;

import com.xhsj.user.hr.userInfo.query.UserDetailFileQuery;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.hr.userInfo.entity.TbGlobalUserFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 用户_相关文件 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-08
 */
@Mapper
public interface TbGlobalUserFileMapper extends BaseMapper<TbGlobalUserFile> {

    /**
     * 获取用户相关的文件信息
     * @author liuqinghua
     * @date Sep 8, 2020 2:04:00 PM
     */
    List<UserDetailFileQuery> getFileInfo(@Param("userId") Long userId);

    /**
     * 用户相关文件
     * @author liuqinghua
     * @date Sep 8, 2020 2:04:00 PM
     */
    int deleteDataByUserId(@Param("userId") Long userId);
}
